package com.first.order.controller;

import com.first.common.pojo.TbMember;
import com.first.common.vo.Result;
import com.first.order.service.TbMemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SecondProject
 * @description:
 * @author: 李榕轩
 * @create: 2023-05-27 18:33
 **/
@RestController
@RequestMapping("order/member")
@Api(tags = "会员接口类")
public class TbMemberController {
    @Autowired
    private TbMemberService tbMemberService;
    @PostMapping("/queryAllMemberById/{memberId}")
    @ApiOperation(value = "条件查询")
    public Result queryAllMemberById(@PathVariable String memberId) {
        //System.out.println(userVo);
        TbMember tbMember = tbMemberService.queryAllMemberById(memberId);

        return Result.success(tbMember);

    }
}
